package cn.tedu.store.feign;

import cn.tedu.store.entity.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 远程访问cart-service服务
 */
@FeignClient(name = "cart-service")
public interface CartServiceClient {
    @PostMapping("/carts/findByCid")
    public List<CartVO> findByCid(@RequestBody Integer[] cids, @RequestParam(value = "uid") Integer uid);

    @PostMapping("/carts/removeCartListByOrder")
    public void removeCartListByOrder(@RequestBody Integer[] cids);
}
